﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.Master" AutoEventWireup="true" CodeBehind="Add.aspx.cs" Inherits="Token.Piker.Web.Admin.Activity.Add" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>创建画题</title>
    <style type = "text/css">    
        #rightbar p
        {
            height:auto;
            padding-top:10px;
            padding-bottom:10px;
        }
        #rightbar p label
        {
            display:inline-block;
            width:100px;
            height:25px;
        }
    </style>
    <script src="../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <label for = "txtTheme">主题：</label>
        <asp:TextBox ID = "txtTheme" runat = "server"  Width = "200" Height = "25"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*主题不能为空" ControlToValidate = "txtTheme"></asp:RequiredFieldValidator>
    </p>
    <p>
        <label for = "txtDescrip">描述：</label>
        <asp:TextBox ID = "txtDescrip" runat = "server" Width = "300" TextMode = "MultiLine" Rows = "5"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*请输入活动描述" ControlToValidate = "txtDescrip"></asp:RequiredFieldValidator>
    </p>
    <p>
        <label for = "txtAward">奖励：</label>
        <asp:TextBox ID = "txtAward" runat = "server" Width = "300" TextMode = "MultiLine" Rows = "5"></asp:TextBox>
    </p>
    <p>
        <label for = "txtStartTime">开始时间：</label>
        <asp:TextBox ID = "txtStartTime" runat = "server" Width = "100" onFocus = "WdatePicker()"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*请输入开始时间" ControlToValidate = "txtStartTime"></asp:RequiredFieldValidator>
    </p>
    <p>
        <label for = "txtEndTime">结束时间：</label>
        <asp:TextBox ID = "txtEndTime" runat = "server" Width = "100" onFocus = "WdatePicker()" ></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*请输入结束时间" ControlToValidate = "txtEndTime"></asp:RequiredFieldValidator>
    </p>
    <p>
        <label for = "txtPosition">活动地点：</label>
        <asp:TextBox ID = "txtPosition" runat = "server" Width = "200"></asp:TextBox>
    </p>
    <p>
        <label>背景图：</label>
        <asp:FileUpload ID="fileUp" runat="server" />
    </p>
    <p>
        <label>活动类型：</label>
        <asp:DropdownList ID = "ddlFlag" runat = "server">
            <asp:ListItem Value = "0">线上活动</asp:ListItem>
            <asp:ListItem Value = "1">线下活动</asp:ListItem>
        </asp:DropdownList>
    </p>
    <p>
        <asp:Button ID = "btnAdd" runat = "server" Text = "创建" Width = "100" 
            Height ="25" onclick="btnAdd_Click" />&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID ="btnCancel" runat ="server" Text = "取消" Width = "100" CausesValidation = "false"
            Height = "25" onclick="btnCancel_Click" />
    </p>
</asp:Content>
